home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
HOWTOS
/
READICON
Wrap
Text File
|
1997-03-23
|
993b
|
28 lines
You need to use Wimp_TransferBlock for reading out of the applications
workspace. For that you need to know the task handle. Here is some code
for reading the title bar of any window. You should be able to modify that.
REM what task does it belong to ?
buffer%!0 = 20
buffer%!4 = my_wimp_handle%
buffer%!8 = 0
buffer%!12 = 0
buffer%!16 = 0
SYS "Wimp_SendMessage",19,buffer%,window%,icon% TO ,,task_handle%
REM title direct/indirect ?
a%=(buffer%!60) AND &100
REM obtain window title
IF a% THEN
SYS "Wimp_TransferBlock",task_handle%,buffer%!76,handle%,buffer%,256
XOS_SynchroniseCodeAreas=&2006E: REM This is a bodge for a bug in 3.70
SYS XOS_SynchroniseCodeAreas,0
title$ = FN0(buffer%)
ELSE
title$ = FN0(buffer%+76)
ENDIF
--
|- Nick Craig-Wood ---------------------------------- ncw@axis.demon.co.uk -|
|-------- He's not at his desk right now. Could I take a message? ---------|